package com.itheima.stringbuilder;

public class Demo1 {
    public static void main(String[] args) {
        //1. StringBuilder的append操作
        StringBuilder sb = new StringBuilder();

        //2. 拼接 "红色","蓝色","黄色"
        sb.append("红色");
        sb.append("蓝色");
        sb.append("黄色");

        //3. 将StringBuilder转为String
        String s1 = sb.toString();
        System.out.println("s1 = " + s1);
    }
}
